﻿#ifndef SETTINGOFCHARGEPOWER_H
#define SETTINGOFCHARGEPOWER_H

#include <QWidget>
#include "Global.h"

namespace Ui {
class SettingOfChargePower;
}

class SettingOfChargePower : public QWidget
{
    Q_OBJECT
    
public:
    CountDownTime* countdown[GUN_AMOUNT];
    QLabel* time;
    QLabel* signal;

    explicit SettingOfChargePower(QWidget *parent = 0);
    ~SettingOfChargePower();

signals:
    void StartCharging_RefreshChargeInfo(int focus_gun_);

public slots:
    void on_Keyboard_clicked();

private slots:
    void countdownOver();
    void on_buttonOk_clicked();
    void setCountHide(int current);
    void on_buttonBack_clicked();
    void Device_Error_or_NotConnect(int);
    void on_buttonCancelCharging_clicked();

private:
    void keyBoardConnect();
    void keyHandle(QPushButton* btn, QLineEdit* lineEdit);

    Ui::SettingOfChargePower *ui;
};

#endif // SETTINGOFCHARGEPOWER_H
